package com.rentplant.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.helpinfojudge;
import com.rentplant.mapper.helpInfoJudgeMapper;
import com.rentplant.service.helpInfoJudgeService;
import com.rentplant.service.helpInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class helpInfoJudgeServiceImp implements helpInfoJudgeService {

    @Autowired
    private helpInfoJudgeMapper helpinfojudgemapper;


    //按照求租信息id进行查找评论
    @Override
    public List<helpinfojudge> selectJudgeById(JSONObject helpinfojudge){
        return helpinfojudgemapper.selectJudgeById(helpinfojudge);
    }

    //添加求助信息评论
    @Override
    public boolean addHelpJudgeInfo(JSONObject helpinfojudge){
        return helpinfojudgemapper.addHelpJudgeInfo(helpinfojudge);
    }
}
